package com.leadingsoft.pwxk.converter;

import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.ProductCginfoDto;
import com.leadingsoft.pwxk.model.ProductCginfo;

/**
 * @author: lipan 2018年5月15日
 * @description: ()
 * 
 */

@Component
public class ProductCginfoConverter extends AbstractConverter<ProductCginfo, ProductCginfoDto> {

	@Override
	protected ProductCginfoDto toDtoActual(ProductCginfo model) {

		ProductCginfoDto dto = new ProductCginfoDto();
		dto.setId(model.getId());
		dto.setDataid(model.getDataid());
		dto.setCggcsize(model.getCggcsize());
		dto.setGdtypename(model.getGdtypename());
		dto.setGtdiameter(model.getGtdiameter());
		dto.setGthigh(model.getGthigh());
		dto.setMaxwd(model.getMaxwd());
		dto.setMaxzzl(model.getMaxzzl());
		dto.setWlname(model.getWlname());
		dto.setXkcgcode(model.getXkcgcode());
		return dto;
	}

	@Override
	public void copyProperties(ProductCginfo model, ProductCginfoDto dto) {

	}

}
